package com.danbay.cloud.project.mapper;

import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.baomidou.mybatisplus.plugins.pagination.Pagination;
import com.danbay.cloud.project.api.dto.HouseQueryDto;
import com.danbay.cloud.project.api.dto.RoomQueryDto;
import com.danbay.cloud.project.entity.House;
import com.danbay.cloud.project.entity.Room;

import java.util.List;

/**
 * @author SJG
 *         2018/1/29.
 */
public interface RoomMapper extends BaseMapper<Room> {

    /**
     * 查找房源空间信息
     * @param page 分页信息
     * @param room 房源空间条件
     * @return 房源空间列表
     */
    List<Room> findRooms(Pagination page, Room room);
}
